$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .title_50 {
    font-size: 50/$f+vw;
    font-weight: bold;
  }
  .container {
    margin: 229/$f+vw 210/$f+vw 153/$f+vw 210/$f+vw;

    .section {
      &:not(:first-child){
        margin-top: 67/$f+vw;
      }
      .pt {
        color: #000;
        font-size: 50/$f+vw;
        font-weight: 700;
        position: relative;
        padding-bottom: 13/$f+vw;

        &::after {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 73/$f+vw;
          height: 3/$f+vw;
          border-radius: 3/$f+vw;
          background: #000;
        }
      }

      .des {
        color: #666;
        font-size: 18/$f+vw;
        margin: 29/$f+vw 0 69/$f+vw 0;
      }

      .list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 31/$f+vw;

        a {
          border-radius: 3px;
          border: 1px solid #CFCFCF;

          .pic {
            border-radius: 3px;
            background: #F5F5F5;
            padding: 38/$f+vw 63/$f+vw 26/$f+vw 63/$f+vw;

            img {
              width: 100%;
              display: block;
              object-fit: contain;
              transition: all 600ms;
            }
          }

          .text {
            margin: 39/$f+vw 35/$f+vw;

            .name {
              color: #000;
              font-size: 36/$f+vw;
              font-weight: 700;

              span {
                color: #00B58A;
              }
            }

            .des {
              margin: 17/$f+vw 0 95/$f+vw 0;
              line-height: 1.625;
            }

            .btn {
              display: flex;
              align-items: center;

              span {
                width: 28/$f+vw;
                height: 28/$f+vw;
                background: #00B58A;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                svg{
                  width: 15/$f+vw;
                  display: block;
                }
              }
              p{
                color: #666;
                font-size: 14/$f+vw;
                margin-left: 14/$f+vw;
              }
            }
          }
          &:hover{
            .pic{
              img{
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }
  }

  .section3 {
    margin: 118/$f+vw 210/$f+vw 133/$f+vw 210/$f+vw;
    display: flex;
    justify-content: space-between;

    .item {
      width: 49%;
      padding: 52/$f+vw 48/$f+vw;
      color: white;
      border-radius: 15/$f+vw;

      .p1 {
        font-weight: 700;
      }

      .p2 {
        font-size: 26/$f+vw;
        margin-top: 10/$f+vw;
      }

      a {
        display: flex;
        justify-content: center;
        align-items: center;

        span {
          width: 28/$f+vw;
          height: 28/$f+vw;
          background-color: #00B58A;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;

          svg {
            width: 15/$f+vw;

            path {
              transition: all 600ms;
            }
          }
        }

        p {
          color: #FFF;
          font-size: 14/$f+vw;
          margin-left: 14/$f+vw;
        }
      }

      .pic {
        img {
          transition: all 600ms;
        }
      }

      &:hover {
        .pic {
          img {
            transform: scale(1.05);
          }
        }
      }
    }

    .item:nth-child(1) {
      background: #2E2E2E url('../images/line.png') no-repeat;

      .pic {
        margin: 112/$f+vw 0 49/$f+vw 85/$f+vw;
        img {
          max-width: 100%;
          height: 310/$f+vw;
          object-fit: contain;
        }
      }
    }

    .item:nth-child(2) {
      background: #00B58A;

      .pic {
        margin: 105/$f+vw 0 49/$f+vw 156/$f+vw;

        img {
          max-width: 100%;
          object-fit: contain;
        }
      }

      a {
        span {
          background: white;

          svg {
            path {
              fill: #00B58A;
            }
          }
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .container{
      margin: 20px 5%;
      .section{
        &:not(:first-child){
          margin-top: 40px;
        }
        .pt{
          font-size: 24px;
          padding-bottom: 10px;
          &::after{
            width: 30px;
            height: 2px;
          }
        }
        .des{
          font-size: 16px;
          margin: 15px 0 30px 0;
        }
        .list{
          grid-template-columns: repeat(1, 1fr);
          gap: 15px 0;
          a{
            .pic{
              padding: 15px;
            }
            .text{
              margin: 20px;
              .name{
                font-size: 24px;
              }
              .des{
                margin: 10px 0 30px 0;
              }
              .btn{
                span{
                  width: 25px;
                  height: 25px;
                  svg{
                    width: 20px;
                  }
                }
                p{
                  font-size: 16px;
                  margin-left: 10px;
                }
              }
            }
          }
        }
      }
    }
    .section3{
      margin: 40px 5%;
      flex-direction: column;
      .item{
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
        .p1{
          font-size:24px ;
        }
        .p2{
          font-size: 14px;
          margin-top: 10px;
        }
        a{
          span{
            width: 25px;
            height: 25px;
            svg{
              width: 20px;
            }
          }
          p{
            font-size: 16px;
            margin-left: 10px;
          }
        }
      }
      .item:nth-child(1){
        .pic{
          img{
            height: auto;
          }
        }
      }
    }
  }
}